package com.ten_4_4.hiring.comm.util;

public abstract class MoneyUtil {
	/**
	 * 暂时只支持xx.xx万/千
	 */
	public static int chineseMoneyConvertToRoman(String chineseMoney) {
		String prefix = chineseMoney.substring(0, chineseMoney.length() - 1);
		char suffix = chineseMoney.charAt(chineseMoney.length() - 1);
		int result = 0;
		if(suffix == '万') {
			result = (int)(Double.parseDouble(prefix) * 10000);
		} else if (suffix == '千') {
			result = (int)(Double.parseDouble(prefix) * 1000);
		}
		return result;
	}
}
